package com.subject.shuati.domain.covert;

import com.subject.shuati.domain.entity.SubjectCategoryBo;
import com.subject.shuati.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectCategoryConverter {

    SubjectCategoryConverter Instance = Mappers.getMapper(SubjectCategoryConverter.class);

    SubjectCategory covertToCategory(SubjectCategoryBo subjectCategoryBo);


    List<SubjectCategoryBo> covertToCategoryBoList(List<SubjectCategory> subjectCategoryList);
}
